{extend name="index/base" /}
{block name="main"}
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>栏目列表</legend>
    <div style="margin-top: 10px">
        <a href="{:url('create')}" class="layui-btn">添加栏目</a>
    </div>

</fieldset>

<table class="layui-table">
    <thead>
    <tr>
        <th>ID</th>
        <th>栏目名称</th>
        <th>节点地址</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    {:menu_tree_to_view($menuTrue)}
    </tbody>
</table>
<div id="demo0" class="pages"><div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-1"></div></div>
{/block}